import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
    mode: 'history', // 使用 H5 history，去掉 url 中的哈希 #
    linkExactActiveClass: 'active', // 路由完全匹配时的 class
    routes: [{
        path: '/',
        name: 'Login',
        component: resolve => require(['@/views/Login'], resolve)
    }, {
        path: '/index',
        name: 'Index',
        component: resolve => require(['@/views/Index'], resolve),
        children: [{
            path: '',
            name: 'Aaa',
            component: resolve => require(['@/views/Aaa'], resolve)
        }, {
            path: 'bbb',
            name: 'Bbb',
            component: resolve => require(['@/views/Bbb'], resolve)
        }]
    }]
})
